/* -----------------
* brief
* 1. this is code gen by tools
* 2. mvc code are driver by the model defined with the same filename,
	 for example:
	 there is a Xmodel struct define in xmodel.go file, after the script run (lego model-mvc module_name xmodel)
     it will auto create the code under the module's path
	 m --> xmodel.go
	 v --> view
	 c --> xmodel_ctrl
* 3. you should modify this code if it doesn't satisfy your purpose
*/

package controller

import (
	"github.com/chanxuehong/wechat/mp/core"
	_ "github.com/mjiulee/lego"
	_ "github.com/mjiulee/lego/utils"
	//. "lego_wechat/modules/wechat/models"
	//. "lego_wechat/modules/wechat/service"

	_ "encoding/json"
	_ "github.com/chanxuehong/wechat/mp/oauth2"
)

//卡券子商户资格相关处理函数
func (this *WechatSdkCardCallbackCtrl) CardMerchantCheckResultEventHandler(ctx *core.Context) {
	return
}

/*
https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Wechat_Accreditation_Event_Push.html#%E8%B5%84%E8%B4%A8%E8%AE%A4%E8%AF%81%E6%88%90%E5%8A%9F%EF%BC%88%E6%AD%A4%E6%97%B6%E7%AB%8B%E5%8D%B3%E8%8E%B7%E5%BE%97%E6%8E%A5%E5%8F%A3%E6%9D%83%E9%99%90%EF%BC%89
以下为公众号认证相关推送消息，暂时不实现

func (this *WechatSdkCardCallbackCtrl) QualificationVerfiySuccessEventHandler(ctx *core.Context) {
	log.Printf("qualification_verify_success event")
	appid := string(ctx.QueryParams.Peek("appid"))
	cardid := ctx.MixedMsg.CardId
	err := this.wxCardService.QualificationVerfiySuccessEventHandler(appid, ctx.MixedMsg)
	return
}

func (this *WechatSdkCardCallbackCtrl) QualificationVerfiyFailEventHandler(ctx *core.Context) {

	return
}

func (this *WechatSdkCardCallbackCtrl) NamingVerfiyFailEventHandler(ctx *core.Context) {
	return
}

func (this *WechatSdkCardCallbackCtrl) AnnualRenewEventHandler(ctx *core.Context) {
	return
}

func (this *WechatSdkCardCallbackCtrl) VerifyExpiredEventHandler(ctx *core.Context) {
	return
}

func (this *WechatSdkCardCallbackCtrl) CardMerchantCheckResultEventHandler(ctx *core.Context) {
	return
}
*/
